package com.loan.service;

import com.loan.entity.CreditCard;
import com.loan.repository.CreditCardRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by huxudong on 17/7/5.
 */
@Service
public class CreditCardService {

    @Autowired
    private CreditCardRepository creditCardRepository;


    public List<CreditCard> findByFlag(Integer flag){
       return creditCardRepository.findByFlagOrderBySort(flag);
    }
}
